Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

636146 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/67 - Currency Converter

style.css cody/swapnilsparsh/30DaysOfJavaScript/67 - Currency Converter/style.css
119 Views
0 Comments
* {
box-sizing: border-box;
}
body {

font-family: Arial, Helvetica, sans-serif;
display: flex;
flex-direction: column;
index.html cody/swapnilsparsh/30DaysOfJavaScript/67 - Currency Converter/index.html
297 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Currency_Converter_in_Javascript</title>
<link rel="stylesheet" href="style.css" />
readme.md cody/swapnilsparsh/30DaysOfJavaScript/67 - Currency Converter/readme.md
185 Views
0 Comments
I have added a Currency Converter.
It allows user to type digits(amount) and we have real time conversions as they type.
It fetches recent rates from the exchangerate API.
The UI is pretty simple and neat.


script.js cody/swapnilsparsh/30DaysOfJavaScript/67 - Currency Converter/script.js
164 Views
0 Comments
const exchange_rate = document.getElementById('exchange-rate');
const curr_first = document.getElementById('curr-first');
const curr_second = document.getElementById('curr-second');
const worth_first = document.getElementById('worth-first');
const worth_second = document.getElementById('worth-second');
const swap_curr = document.getElementById('swap-curr');

function swap() {